package com.youkeyi.ddy.cloud.common.api.basic.pub.position;

import com.youkeyi.ddy.cloud.common.api.basic.pub.position.dto.PublicPositionListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.position.param.*;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * PublicPositionCloudService
 *
 * @Author liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicPositionCloudServiceFallback.class)
@RequestMapping("/public/position")
public interface PublicPositionCloudService {

    /**
     * 查询岗位列表.
     *
     * @param param the param
     * @return the server list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicPositionListCloudDto query(@RequestBody PublicPositionQueryCloudParam param);

    /**
     * 新增岗位.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody PublicPositionCreateCloudParam param);

    /**
     * 编辑岗位.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody PublicPositionUpdateCloudParam param);

    /**
     * 删除岗位.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody PublicPositionDeleteCloudParam param);
}
